/*
 * @Autor: zengy
 * @Date: 2021-06-15 13:42:28
 * @LastEditors: zengy
 * @LastEditTime: 2021-07-29 14:44:44
 * @Description: bus通信
 * @FilePath: \Mics3.0_3DViewer_WEB\3DViewer\src\plugins\bus.js
 */
import mitt from 'mitt'

class EventBus{
    constructor(){
        this.emitter = mitt();
        this.$on = this.emitter.on;
        this.$off = this.emitter.off;
        this.$emit = this.emitter.emit;
    } 
}


export default EventBus;